package com.explment.lens.controller.user;

import com.explment.lens.entity.SysUserRoleEntity;
import com.explment.lens.service.SysUserRoleService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 用户角色关联 controller
 */
@RestController
@RequestMapping("/sysUserRoleEntity")
public class SysUserRoleController {
    @Autowired
    private SysUserRoleService sysUserRoleEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysUserRoleEntityService.getById(id));
    }
}